# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-calendar
pkgver=3.36.2
pkgrel=0
pkgdesc="Calendar application for GNOME"
url="https://wiki.gnome.org/Apps/Calendar"
arch="all !s390x !mips !mips64" # libhandy
license="GPL-3.0-or-later"
depends="gsettings-desktop-schemas"
makedepends="meson libical-dev gsettings-desktop-schemas-dev evolution-data-server-dev
	libsoup-dev libdazzle-dev glib-dev gtk+3.0-dev libgweather-dev geoclue-dev
	geocode-glib-dev gtk-doc libhandy-dev"
options="!check" # Can't be run on release builds and we don't want debug asserts
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/gnome-calendar/${pkgver%.*}/gnome-calendar-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	ninja -C output
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="83d0157a3958ff7f16af2f6a06c2c5fdd7ce19bb532c1cda0982ab37d78149f4c0ae252de937103baa56d105a1cf54c2e29174f6f3f969904071e187cf564c33  gnome-calendar-3.36.2.tar.xz"
